package com.example.tse.rbhttpservice.service.shopping.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


/**
 * 购物车中没有商品时显示“为我推荐”商品，购物成功或失败提示页也有
 * @author wliu
 * edit tse
 */
public class ShoppingGetRecommendList extends RudderResponse{
    
    private String productId = "";
		
    
    private String name = "";
		
    
    private String thumbnailPic = "";
		
    
    private String price = "";
		
    
    private String buyerNum = "";
		
    
    private String storeNum = "";
		
	
    /**
     * @return productId
     */	
    public String getProductId() { 
	    return this.productId;
    };
	
	/**
     * @return productId
     */	
    public void setProductId(String productId) { 
        this.productId = productId;
    };
    
    /**
     * @return name
     */	
    public String getName() { 
	    return this.name;
    };
	
	/**
     * @return name
     */	
    public void setName(String name) { 
        this.name = name;
    };
    
    /**
     * @return thumbnailPic
     */	
    public String getThumbnailPic() { 
	    return this.thumbnailPic;
    };
	
	/**
     * @return thumbnailPic
     */	
    public void setThumbnailPic(String thumbnailPic) { 
        this.thumbnailPic = thumbnailPic;
    };
    
    /**
     * @return price
     */	
    public String getPrice() { 
	    return this.price;
    };
	
	/**
     * @return price
     */	
    public void setPrice(String price) { 
        this.price = price;
    };
    
    /**
     * @return buyerNum
     */	
    public String getBuyerNum() { 
	    return this.buyerNum;
    };
	
	/**
     * @return buyerNum
     */	
    public void setBuyerNum(String buyerNum) { 
        this.buyerNum = buyerNum;
    };
    
    /**
     * @return storeNum
     */	
    public String getStoreNum() { 
	    return this.storeNum;
    };
	
	/**
     * @return storeNum
     */	
    public void setStoreNum(String storeNum) { 
        this.storeNum = storeNum;
    };
    
	
        
    public static void filter(ShoppingGetRecommendList shopping) {
        if (shopping.getProductId() == null) {
            shopping.setProductId("");
        }
        if (shopping.getName() == null) {
            shopping.setName("");
        }
        if (shopping.getThumbnailPic() == null) {
            shopping.setThumbnailPic("");
        }
        if (shopping.getPrice() == null) {
            shopping.setPrice("");
        }
        if (shopping.getBuyerNum() == null) {
            shopping.setBuyerNum("");
        }
        if (shopping.getStoreNum() == null) {
            shopping.setStoreNum("");
        }
    }
}
